Convert SQL queries to pandas

join shbcf.ru